package com.lxy.vo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lxy.entity.Attr;
import com.lxy.entity.Sku;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@TableName(value = "spu")
@Data
@ApiModel(value = "返回给前端展示spu数据")
public class SpuVo {
    /** spu id */
    @TableId(value = "spu_id" ,type = IdType.AUTO)
    @ApiModelProperty(name = "spu id",notes = "")
    private Integer  spuId;

    /*    *//** 创建时间 *//*
    @ApiModelProperty(name = "创建时间",notes = "")
    private Date createTime ;
    *//** 更新时间 *//*
    @ApiModelProperty(name = "更新时间",notes = "")
    private Date updateTime ;*/

    /** 品牌ID */
    @ApiModelProperty(name = "品牌ID",notes = "")
    private Integer brandId ;
    /** 分类ID */
    @ApiModelProperty(name = "分类ID",notes = "")
    private Integer categoryId ;
    /** 店铺分类ID */
    @ApiModelProperty(name = "店铺分类ID",notes = "")
    private Integer shopCategoryId ;
    /** 店铺id */
    @ApiModelProperty(name = "店铺id",notes = "")
    private Integer shopId ;
    /** 商品名称 */
    @ApiModelProperty(name = "商品名称",notes = "")
    private String name ;
    /** 卖点 */
    @ApiModelProperty(name = "卖点",notes = "")
    private String sellingPoint ;
    /** 商品介绍主图 */
    @ApiModelProperty(name = "商品介绍主图",notes = "")
    private String mainImgUrl ;
    /** 商品图片 多个图片逗号分隔 */
    @ApiModelProperty(name = "商品图片 多个图片逗号分隔",notes = "")
    private String imgUrls ;
    /** 商品视频 */
    @ApiModelProperty(name = "商品视频",notes = "")
    private String video ;
    /** 售价，整数方式保存 */
    @ApiModelProperty(name = "售价，整数方式保存",notes = "")
    private BigDecimal priceFee ;
    /** 市场价，整数方式保存 */
    @ApiModelProperty(name = "市场价，整数方式保存",notes = "")
    private BigDecimal marketPriceFee ;
    /** 状态 -1:删除, 0:下架, 1:上架 */
    @ApiModelProperty(name = "状态 -1:删除, 0:下架, 1:上架",notes = "")
    private Integer status ;
    /** sku是否含有图片 0无 1有 */
    @ApiModelProperty(name = "sku是否含有图片 0无 1有",notes = "")
    private Integer hasSkuImg ;
    /** 序号 */
    @ApiModelProperty(name = "序号",notes = "")
    private Integer seq ;

    @ApiModelProperty(name = "是否删除")
    private Integer isdel;

    @TableField( exist = false)
    @ApiModelProperty(name = "商品规格列表")
    private List<Sku> skuList;

    @ApiModelProperty(name = "商品属性列表")
    @TableField(exist = false)
    private List<Attr> attrList;

    @TableField(exist = false)
    @ApiModelProperty(name = "商品详情信息")
    private String detail;

}
